

socket = require"socket"
socket.unix = require"socket.unix"

function send_data(msg)
    c = assert(socket.unix())
    assert(c:connect("/tmp/kfupload.sock"))
    while 1 do
        c:send(msg)
        break
    end
end

send_data("I 'm a test file")
